<%@ page contentType="text/html; charset=utf-8" language="java" import="java.sql.*" errorPage="" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<%@ page import="NegocioVO.MesaVO"%>
<%@ page import="java.util.*"%>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Facturar - Elegir mesa</title>
<style type="text/css">
#form1 h1 {
	font-family: Verdana, Geneva, sans-serif;
}
</style>
</head>

<body>

<form id="form1" name="form1" method="post" action="">

<%
			MesaVO aux;
			String idMesa;
			List<MesaVO> mesasOc = (List<MesaVO>)request.getAttribute("mesasOc");
%>

  <h2>Emitir Factura</h2>
  <p>
    <label for="mesas">Elegir Mesa Ocupada a Facturar </label>
    <select name="mesasOc" id="mesasOc">
    <%			for (Iterator<MesaVO> m = mesasOc.iterator(); m.hasNext();) {

				aux = m.next();
				idMesa = String.valueOf(aux.getIdMesa());
	%>
    			<option value="<%=idMesa%>"><%=idMesa%>  </option>
    	<%		
			}
		%>
    
    </select>
  </p>
  <p>
    <input type="submit" name="traerComandas" id="traerComandas" value="Mostrar Comandas" />
    
  
</form>

</body>
</html>